﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public class ReplyMessageBLL:BaseBLL<ReplyMessage>
    {
        ReplyMessageDAO reDao = new ReplyMessageDAO();
        public ReplyMessage replyMess = new ReplyMessage();
        public override ReplyMessage GetModel()
        {
            return replyMess;
        }
        public int GetRepluCount(int mesId)
        {
            return reDao.GetRepluCount(mesId);
        }
        /// <summary>
        /// 查询某个留言下的回复
        /// </summary>
        /// <param name="mesId"></param>
        /// <returns></returns>
        public IList<ReplyMessage> FindByMesId(int mesId)
        {
            return reDao.FindByMesId(mesId);
        }

        public IList<ReplyMessage> FindByMesId(int mesId, int CurrentIndex, int pageSize)
        {
            return reDao.FindByMesId(mesId,CurrentIndex,pageSize);
        }
        public int GetCount(int mesId)
        {
            return reDao.GetCount(mesId);
        }
    }
}
